package com.gewu.pm.ui.activity;

import android.os.Bundle;
import android.view.View;

import com.gewu.pm.R;
import com.gewu.pm.app.AppActivity;
import com.gewu.pm.ui.dialog.TipsTwoDialog;

/**
 * 注销账号
 */
public class LogoutAccountActivity extends AppActivity {

    @Override
    protected int getLayoutId() {
        return R.layout.activity_logout_account;
    }

    @Override
    protected void initView(Bundle savedInstanceState) {
        setOnClickListener(R.id.btn_logout);
    }

    @Override
    protected void initData() {

    }

    @Override
    public void onClick(View view) {
        super.onClick(view);
        int id = view.getId();
        if (id == R.id.btn_logout) {
            new TipsTwoDialog.Builder(getContext()).setTitle("确认注销账户？").setListener(dialog -> {
                toast("已注销");
            }).show();
        }
    }
}